//
//  IflyMSCManager.h
//  YueYueSpecailCarDriver
//
//  Created by 李亚军 on 17/3/7.
//  Copyright © 2017年 黄旺鑫. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef NS_OPTIONS(NSInteger, Status) {
    NotStart            = 0,
    Playing             = 2, //高异常分析需要的级别
    Paused              = 4,
};

@class IFlySpeechSynthesizer;
@interface IflyMSCManager : NSObject

#pragma mark - 通知名称以及描述
#define IFlySpeech_StartSynthesis @"IFlySpeech_StartSynthesis" // 开始合成音频
#define IFlySpeech_CacheSchedule @"IFlySpeech_CacheSchedule" // 缓存进度
#define IFlySpeech_PlaybackProgress @"IFlySpeech_PlaybackProgress" // 播放进度
#define IFlySpeech_PausePlayback @"IFlySpeech_PlaybackProgress" // 暂停播放
#define IFlySpeech_ErrorCode @"IFlySpeech_ErrorCode" // 错误码
#define IFlySpeech_CompositeCancel @"IFlySpeech_CompositeCancel" // 合成取消
#define IFlySpeech_SynthesisCompleted @"IFlySpeech_SynthesisCompleted" // 合成完成
#define IFlySpeech_StartPlay @"IFlySpeech_StartPlay" // 开始播放语音
@property (nonatomic, strong) IFlySpeechSynthesizer * iFlySpeechSynthesizer; // 语音合成管理类

@property (nonatomic, assign) Status state; // 播放状态

/**
 初始化单利
 */
+ (IflyMSCManager *)shareManager;


/**
 开始将文字合成语音
 */
+ (IflyMSCManager *)startSyntheticSpeechWithText:(NSString *)text;

/**
 为导航提供语音
 */
+ (IflyMSCManager *)startSyntheticSpeechForNaviWithText:(NSString *)text;

@end
